package repository

import (
	"ruoyi/domain/entity/common"
	"ruoyi/domain/entity/response"
	"ruoyi/domain/entity/system"
)

type SysDeptRepository interface {
	GetDeptList(params common.SearchTableDataParam, isPaging bool) ([]system.SysDeptResult, int64)

	GetDeptInfo(deptId string) system.SysDept

	SaveDept(sysDept system.SysDept) response.Response

	UpDataDept(sysDept system.SysDept) response.Response

	DeleteDept(deptId string) response.Response

	SelectDeptTreeList() []system.TreeSelect

	GetChildList(deptS []system.SysDept, deptId int) []system.TreeSelect
}
